package com.wtwd.wtwddevice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.wtwddevice.model.entity.SetBloodPressureWarning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SetBloodPressureWarningMapper extends BaseMapper<com.wtwd.wtwddevice.model.entity.SetBloodPressureWarning> {
    SetBloodPressureWarning selectBloodPressureWarningByDeviceId(@Param("deviceId") Long deviceId);

    int insertSetBloodPressureWarning(@Param("setBloodPressureWarning") SetBloodPressureWarning setBloodPressureWarning);

    int updateSetBloodPressureWarning(@Param("setBloodPressureWarning") SetBloodPressureWarning setBloodPressureWarning);

    int editState(@Param("deviceId") Long deviceId, @Param("number") String number, @Param("state") int state);

}
